<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<MVCWeb.Models.Event>>" %>
<%@ Register Src="~/Views/Menu/MainMenu.ascx" TagName="MainMenu" TagPrefix="mmuc" %>
<%@ Register Src="~/Views/Shared/LogOnUserControl.ascx" TagName="LogOnUserControl" TagPrefix="louc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <louc:logonusercontrol id="LogOnUserControl1" runat="server" />
    <!-- BEGIN: MainMenu -->
    <mmuc:mainmenu id="MainMenu1" runat="server" />
    <!-- END: MainMenu -->
    <br />
    <h2>
        Even List</h2>
    <br />
    <table cellpadding="4" cellspacing="1" border="0" width="100%" class="DataTable">
        <tr>
            <th>
                Event Type
            </th>
            <th>
                Event Name
            </th>
            <th>
                Event Date
            </th>
            <th style="width:1%"></th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            
            <td>
                <%= Html.Encode(item.EventType) %>
            </td>
            <td>
                <%= Html.Encode(item.Name) %>
            </td>
            <td>
                <%= Html.Encode(item.EventDate) %>
            </td>
            <td>
            <%= Html.ActionLink("Details", "Details", new {  id=item.EventId }) %>
            
            </td>
        </tr>
        <% } %>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
